package at.fhv.androideightpuzzle.application;

import java.util.List;

import at.fhv.androideightpuzzle.application.interfaces.ISelectPuzzleController;
import at.fhv.androideightpuzzle.puzzles.PuzzleLoader;

public class SelectPuzzleController implements ISelectPuzzleController{
	
	private List<String> m_puzzleIds;
	
	public SelectPuzzleController(){
		m_puzzleIds=loadPuzzleIds();
	}
	
	public String[] getPuzzleIds(){
		return m_puzzleIds.toArray(new String[0]);
	}
	
	public void selectPuzzle(int index){
		//
	}
	
	private List<String> loadPuzzleIds(){
		return PuzzleLoader.loadPuzzleIdsAsList();
	}
}
